# include <bits/stdc++.h>
using namespace std;
int main() { 
# ifndef LOCAL 
    freopen("3cfc.in", "r", stdin);
    freopen("3cfc.out", "w", stdout);
# endif
    double a, b, c, d;
    int times = 0;
    cin >> a >> b >> c >> d;
    for(int i = -10000; i <= 10000; i += 1) {
        double x =i / 100.0;
        double ans = ((a * x + b) * x + c) * x;
        if(abs((ans * 100) - (-100 * d)) <= 0.001) {
            printf("%.2f ", x);
            times++;
            if(times == 3) return 0;
            i += 99;
        }
    }
    return 0;
}
